<?php

include('f__.php');

db();

//---------------------------------------------------------------------------------------------------------------


if(!$sql=mysql_query("


                                                CREATE TABLE `P30vel_admin` (


                                                  `username` varchar(250) NOT NULL default '',


                                                  `password` varchar(250) NOT NULL default '',


                                                  PRIMARY KEY  (`username`)


                                                ) TYPE=InnoDB;


"))die('ER1'); //------------------------------------------------------------------------------------------------


echo "Level: 1 OK<br>";


//---------------------------------------------------------------------------------------------------------------


if(!$sql=mysql_query("


                                                CREATE TABLE `epay` (


                                                  `res_num` bigint(12) NOT NULL default '0',


                                                  `batch_number` varchar(250) NOT NULL default '',


                                                  `memo` varchar(250) NOT NULL default '',


                                                  `pay_from` varchar(250) NOT NULL default '',


                                                  `pay_value` varchar(250) NOT NULL default '',


                                                  `pay_date` bigint(12) NOT NULL default '0',


                                                  PRIMARY KEY  (`batch_number`)


                                                ) TYPE=InnoDB;


"))die('ER2');//-------------------------------------------------------------------------------------------------


echo "Level: 2 OK<br>";


//---------------------------------------------------------------------------------------------------------------


if(!$sql=mysql_query("


                                                INSERT INTO `P30vel_admin` VALUES ('admin', 'admin');


"))die('ER3');//-------------------------------------------------------------------------------------------------


echo "Level: 3 OK<br><hr>Installation done.<br><br>Please remove `install.php` after installation.<br><br>";

